package com.bjpowernode.services;
import com.bjpowernode.beans.DictionaryType;
import com.bjpowernode.mapper.DictionaryTypeMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.servlet.ServletContext;
import javax.servlet.http.HttpServletRequest;
import java.sql.SQLException;
import java.util.ArrayList;


@Service
public class DictionaryTypeServicesImp implements DictionaryTypeServices{

    @Autowired
    DictionaryTypeMapper dictionaryTypeMapper;

    @Override
    public ArrayList<DictionaryType> getAll() {

        return dictionaryTypeMapper.getAll();
    }

    @Override
    public DictionaryType get(String id) {
        return dictionaryTypeMapper.get(id);
    }

    @Override
    public int add(DictionaryType dictionaryType) {
        return dictionaryTypeMapper.add(dictionaryType);
    }

    @Override
    public int edit(DictionaryType dictionaryType) {
        return dictionaryTypeMapper.edit(dictionaryType);
    }

    @Override
    public int del(String[] ids){


        return dictionaryTypeMapper.del(ids);
    }



}
